<template>
  <el-container>
    <el-aside width="200px">
      <!--        logo部分-->
      <div class="aside-logo">
        <img src="../../assets/crm_logo.jpg" alt="">
        <span>辉哥真球帅</span>
      </div>

      <!--   菜单部分-->
      <el-scrollbar>
        <el-menu
            :default-active="$route.path"
            class="el-menu-vertical-demo"
            router
        >

          <!--          Huigeitem这个组件 就是判断权限 是个菜单还是一个目录 -->
          <huigeitem v-for="(item,index) in menuList" :key="index" :huige="item">
          </huigeitem>

        </el-menu>

      </el-scrollbar>


    </el-aside>
    <el-container>
      <el-header>扯犊子后台管理系统</el-header>
      <el-main>
        <div class="main-body">
          <router-view/>
        </div>
      </el-main>
    </el-container>
  </el-container>
</template>

<script src="./index.js">

</script>

<style lang="scss" src="./index.scss">

</style>
